public class text3_1 {
   public static void main (String args[]) {
      int sum = 0,item=1;
      int i=1,n=10;
      while(i<=n) {
        sum=sum+item;
        i=i+1;
        item=item*i;
      }
      System.out.println("结果为:"+sum);
    }
}
